<template>
  <div class="home flex-s">
    <div class="item" @click="toLogin('admin')">系统管理员登录</div>
    <div class="item" @click="toLogin('company')">供应商登录</div>
    <div class="item" @click="toLogin('professional')">专家登录</div>
    <div class="item" @click="toLogin('brand')">品牌合作商登录</div>
  </div>
</template>
<script setup>
import { useRoute, useRouter } from "vue-router";
const route = useRoute();
const router = useRouter();
const toLogin = (role) => {
  router.push({
    path: "/login",
    query: {
      role,
    },
  });
};
</script>
<style lang="scss">
.home {
  width: 100%;
  height: auto;
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  .item {
    width: 200px;
    height: 120px;
    line-height: 120px;
    background-color: #f5f5f5;
    margin: 40px;
    text-align: center;
    font-size: 25px;
    color: #000;
    cursor: pointer;
    &:hover {
      background-color: #f2f3ff;
      color: #0252d9;
    }
  }
}
</style>
